<template>
      <div class="order-box">
            <div class="content-box" v-if="loginBeel">
                  <el-empty :image-size="50" style="height:423px" v-if="emptyState" description="暂无订单!!!"></el-empty>
            </div>            
      </div>
</template>

<script>
import { isLogin,getToken,notLoginTip } from '@/utils/auth.js';
export default {
      data(){
            return{
                  emptyState:true,
                  loginBeel:true
            }
      },
      created(){
            // 登录
            if(isLogin()){
                  this.loginBeel = false;
            }else{
                  // this.emptyState = false;
                  this.$message.error(notLoginTip(1));
            }
      },
}
</script>

<style scoped>
@import url('../../assets/css/myorders.css');
</style>